package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 礼品管理对象 gifts
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class Gifts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 礼品编号 */
    private Long id;

    /** 礼品名称 */
    @Excel(name = "礼品名称")
    private String name;

    /** 礼品描述 */
    @Excel(name = "礼品描述")
    private String description;

    /** 礼品数量 */
    @Excel(name = "礼品数量")
    private String quantity;

    /** 礼品价格 */
    @Excel(name = "礼品价格")
    private String price;

    /** 库存状态 */
    @Excel(name = "库存状态")
    private Long stockStatus;

    /** 领取人 */
    @Excel(name = "领取人")
    private String pName;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setStockStatus(Long stockStatus) 
    {
        this.stockStatus = stockStatus;
    }

    public Long getStockStatus() 
    {
        return stockStatus;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("stockStatus", getStockStatus())
            .append("pName", getpName())
            .append("time", getTime())
            .toString();
    }
}
